package com.ljf.spring.captcha;

import com.ljf.captcha.CaptchaManager;
import com.ljf.captcha.config.CaptchaConfig;
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;

/**
 * 说明：sso注册
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/24
 */
@ConditionalOnClass(CaptchaManager.class)
public class CaptchaBeanRegister {
    /**
     * 获取 SSO 配置Bean
     * @return 配置对象
     */
    @Bean
    @ConfigurationProperties(prefix = "ljf.captcha")
    public CaptchaConfig getCaptchaConfig() {
        return new CaptchaConfig();
    }


}
